Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only support public post-types/taxonomies for template support #3622

Merged

Conversation

schlessera
Copy link
Collaborator

Summary

This PR changes the way templates are queried for custom post types and custom taxonomies to check for AMP support.

Instead of querying for publicly_queryable, we query for public instead.

Additionally, we add a _doing_it_wrong() for the case where we end up with a template that is matching but that references a parent template that is not matching or does not exist.

Image 2019-10-25 at 7 42 32 AM

Fixes #1786

Checklist

  • My pull request is addressing an open issue (please create one otherwise).
  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@schlessera schlessera added the Bug Something isn't working label Oct 25, 2019
@googlebot googlebot added the cla: yes Signed the Google CLA label Oct 25, 2019
Copy link
Member

@westonruter westonruter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks so much for your diligence on this.

@westonruter westonruter merged commit a116db4 into develop Oct 25, 2019
@westonruter westonruter deleted the fix/1786-only-support-public-taxonomies-for-templates branch October 25, 2019 14:42
@westonruter westonruter added this to the v1.4 milestone Oct 25, 2019
@westonruter
Copy link
Member

Build for testing: amp.zip (v1.4.0-beta1-20191025T144425Z-a116db49)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working cla: yes Signed the Google CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatibility with Polylang's language taxonomy
3 participants